package com.xnx3.banmahuishou.core.entity;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.xnx3.j2ee.entity.BaseEntity;

/**
 * 微信公众号和骑手用户openid关联表
 * @author 王晓龙
 */
@Entity()
@Table(name = "weixin_public_qishou_openid")
public class WeixinPublicQishouOpenid extends BaseEntity implements java.io.Serializable  {
	private Integer id;	//自增id
	private String openid;	//微信公众号用code兑换得骑手的openid
	private Integer userid;	//骑手用户的id,关联user.id
	
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "openid", columnDefinition="char(50) COLLATE utf8_general_ci COMMENT '微信公众号用code兑换得骑手的openid' default ''")
	public String getOpenid() {
		return openid;
	}
	public void setOpenid(String openid) {
		this.openid = openid;
	}
	@Column(name = "userid", columnDefinition="int(13) COMMENT '骑手用户的id,关联user.id' default '0'")
	public Integer getUserid() {
		return userid;
	}
	public void setUserid(Integer userid) {
		this.userid = userid;
	}
	@Override
	public String toString() {
		return "WeixinPublicQishouOpenid [id=" + id + ", openid=" + openid + ", userid=" + userid + "]";
	}
	
}
